package com.example.dddsample.application.api.request;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * @author: bebm
 * @date: 2022/4/6 17:00
 * @description:
 */
@Validated
@Data
public class KafkaRequestDTO {
    /**
     * 主题名称
     */
    @NotBlank
    String topicName;
    /**
     * 分区数
     */
    int numPartitions;
    /**
     * 副本数
     */
    short replicationFactor;
}
